<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>WLog: WLogInterface.h文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- 制作者 Doxygen 1.5.8 -->
<script type="text/javascript">
<!--
function changeDisplayState (e){
  var num=this.id.replace(/[^[0-9]/g,'');
  var button=this.firstChild;
  var sectionDiv=document.getElementById('dynsection'+num);
  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
    sectionDiv.style.display='block';
    button.src='open.gif';
  }else{
    sectionDiv.style.display='none';
    button.src='closed.gif';
  }
}
function initDynSections(){
  var divs=document.getElementsByTagName('div');
  var sectionCounter=1;
  for(var i=0;i<divs.length-1;i++){
    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
      var header=divs[i];
      var section=divs[i+1];
      var button=header.firstChild;
      if (button!='IMG'){
        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
        button=document.createElement('img');
        divs[i].insertBefore(button,divs[i].firstChild);
      }
      header.style.cursor='pointer';
      header.onclick=changeDisplayState;
      header.id='dynheader'+sectionCounter;
      button.src='closed.gif';
      section.id='dynsection'+sectionCounter;
      section.style.display='none';
      section.style.marginLeft='14px';
      sectionCounter++;
    }
  }
}
window.onload = initDynSections;
-->
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>名字空间</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>WLogInterface.h文件参考</h1><code>#include &quot;<a class="el" href="OS_8h-source.html">OS.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="ILogProcess_8h-source.html">ILogProcess.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="IOuter_8h-source.html">IOuter.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="Record_8h-source.html">Record.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="RegularOuter_8h-source.html">RegularOuter.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="XmlOuter_8h-source.html">XmlOuter.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="ILevel_8h-source.html">ILevel.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="Common_8h-source.html">Common.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="WLDefine_8h-source.html">WLDefine.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="BlockOuter_8h-source.html">BlockOuter.h</a>&quot;</code><br>

<p>
<div class="dynheader">
WLogInterface.h包含/依赖关系图：</div>
<div class="dynsection">
<p><center><img src="WLogInterface_8h__incl.png" border="0" usemap="#WLogInterface.h_map" alt=""></center>
<map name="WLogInterface.h_map">
<area shape="rect" id="node3" href="OS_8h.html" title="OS.h" alt="" coords="5,83,56,111"><area shape="rect" id="node5" href="ILogProcess_8h.html" title="ILogProcess.h" alt="" coords="181,83,285,111"><area shape="rect" id="node7" href="WLDefine_8h.html" title="WLDefine.h" alt="" coords="248,161,336,189"><area shape="rect" id="node9" href="ILevel_8h.html" title="ILevel.h" alt="" coords="160,161,224,189"><area shape="rect" id="node13" href="Record_8h.html" title="Record.h" alt="" coords="156,238,228,266"><area shape="rect" id="node16" href="IOuter_8h.html" title="IOuter.h" alt="" coords="352,238,419,266"><area shape="rect" id="node20" href="RegularOuter_8h.html" title="RegularOuter.h" alt="" coords="411,161,517,189"><area shape="rect" id="node25" href="XmlOuter_8h.html" title="XmlOuter.h" alt="" coords="541,161,627,189"><area shape="rect" id="node30" href="Common_8h.html" title="Common.h" alt="" coords="609,238,692,266"><area shape="rect" id="node34" href="BlockOuter_8h.html" title="BlockOuter.h" alt="" coords="411,83,507,111"></map>
</div>

<p>
<div class="dynheader">
此图展示直接或间接包含该文件的文件：</div>
<div class="dynsection">
<p><center><img src="WLogInterface_8h__dep__incl.png" border="0" usemap="#WLogInterface.hdep_map" alt=""></center>
<map name="WLogInterface.hdep_map">
<area shape="rect" id="node3" href="Record_8cpp.html" title="Record.cpp" alt="" coords="5,83,93,111"><area shape="rect" id="node5" href="WLogInterface_8cpp.html" title="WLogInterface.cpp" alt="" coords="117,83,245,111"></map>
</div>

<p>
<a href="WLogInterface_8h-source.html">浏览该文件的源代码。</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>名字空间</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html">WLog</a></td></tr>

<tr><td colspan="2"><br><h2>宏定义</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="WLogInterface_8h.html#2526a8fa89c481f1f1b6f21c4957345a">trace</a>&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_TRACE, __LINE__, _FUNCTION_NAME_, __FILE__)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="WLogInterface_8h.html#07b32b3e4728b7d10b82d882268e96fa">info</a>&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_INFO, __LINE__, _FUNCTION_NAME_, __FILE__)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="WLogInterface_8h.html#322565ccf348d13e4d3de13af771e5fc">debug</a>&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_DEBUG, __LINE__, _FUNCTION_NAME_, __FILE__)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="WLogInterface_8h.html#468c01a57c439a444e1bc12c2138e6ba">warning</a>&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_WARNING, __LINE__, _FUNCTION_NAME_, __FILE__)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="WLogInterface_8h.html#13c5f5a1374c11e78b0931ed2b5fcc6f">notice</a>&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_NOTICE, __LINE__, _FUNCTION_NAME_, __FILE__)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="WLogInterface_8h.html#0c5e59a7caaa02f887d077eaa467f209">error</a>&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_ERROR, __LINE__, _FUNCTION_NAME_, __FILE__)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="WLogInterface_8h.html#376d6dc5d2ccfed0a99c3d88a107a702">wassert</a>(condition)&nbsp;&nbsp;&nbsp;((!!(condition)) || ((<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_ASSERT, __LINE__, _FUNCTION_NAME_, __FILE__)(&quot;%s&quot;, #condition)),0))</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="WLogInterface_8h.html#eb6ad588d9fde043f5a7ae20aef48e8c">fatal</a>&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_FATAL, __LINE__, _FUNCTION_NAME_, __FILE__)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="WLogInterface_8h.html#e04293253b669ea7b9882c968030eeed">output</a>&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_OUTPUT, __LINE__, _FUNCTION_NAME_, __FILE__)</td></tr>

<tr><td colspan="2"><br><h2>函数</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">ILogProcess *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#4c90989d4645c6ecd9d9113c3dc64fcd">WLog::setLog</a> (ILogProcess *pLog)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置log指针.  <a href="#4c90989d4645c6ecd9d9113c3dc64fcd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">ILogProcess *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#88d869c121c4e8992922002033ac06c6">WLog::getLog</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">获取log指针.  <a href="#88d869c121c4e8992922002033ac06c6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">IOuter *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#251ca1d97c3062af94fc5471724dd6a1">WLog::setOuter</a> (IOuter *pOuter)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置log的输出outer指针.  <a href="#251ca1d97c3062af94fc5471724dd6a1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">ILogProcess *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#620aeb437d19cc9051eba3c2b1cfbc03">WLog::setOuterLog</a> (IOuter *pOuter, ILogProcess *pLog)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置log与log的outer指针.  <a href="#620aeb437d19cc9051eba3c2b1cfbc03"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#121adb4c1a83fb9272cc01323d4da656">WLog::setOutLevel</a> (int iOutLevel=W_LEVEL_FLOOR)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置log的输出级别.  <a href="#121adb4c1a83fb9272cc01323d4da656"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#14984727b0b46ea36398e5ebac29ef56">WLog::setTrimFileName</a> (bool bTrim)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置输出日志中，是否只保留文件名，而不要路径.  <a href="#14984727b0b46ea36398e5ebac29ef56"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#157286d8013463871f20a6bfb039cac1">WLog::buildFileNameNow</a> (const char *szPrefix=&quot;&quot;, const char *szEnd=&quot;.log&quot;, const char *szFormatDateTime=&quot;%Y-%m-%d_%H%M%S&quot;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">以当前的时间创建文件名  <a href="#157286d8013463871f20a6bfb039cac1"></a><br></td></tr>
</table>
<hr><h2>宏定义文档</h2>
<a class="anchor" name="2526a8fa89c481f1f1b6f21c4957345a"></a><!-- doxytag: member="WLogInterface.h::trace" ref="2526a8fa89c481f1f1b6f21c4957345a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define trace&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_TRACE, __LINE__, _FUNCTION_NAME_, __FILE__)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="WLogInterface_8h-source.html">WLogInterface.h</a>第<a class="el" href="WLogInterface_8h-source.html#l00079">79</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="07b32b3e4728b7d10b82d882268e96fa"></a><!-- doxytag: member="WLogInterface.h::info" ref="07b32b3e4728b7d10b82d882268e96fa" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define info&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_INFO, __LINE__, _FUNCTION_NAME_, __FILE__)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="WLogInterface_8h-source.html">WLogInterface.h</a>第<a class="el" href="WLogInterface_8h-source.html#l00080">80</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="322565ccf348d13e4d3de13af771e5fc"></a><!-- doxytag: member="WLogInterface.h::debug" ref="322565ccf348d13e4d3de13af771e5fc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define debug&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_DEBUG, __LINE__, _FUNCTION_NAME_, __FILE__)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="WLogInterface_8h-source.html">WLogInterface.h</a>第<a class="el" href="WLogInterface_8h-source.html#l00081">81</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="468c01a57c439a444e1bc12c2138e6ba"></a><!-- doxytag: member="WLogInterface.h::warning" ref="468c01a57c439a444e1bc12c2138e6ba" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define warning&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_WARNING, __LINE__, _FUNCTION_NAME_, __FILE__)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="WLogInterface_8h-source.html">WLogInterface.h</a>第<a class="el" href="WLogInterface_8h-source.html#l00082">82</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="13c5f5a1374c11e78b0931ed2b5fcc6f"></a><!-- doxytag: member="WLogInterface.h::notice" ref="13c5f5a1374c11e78b0931ed2b5fcc6f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define notice&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_NOTICE, __LINE__, _FUNCTION_NAME_, __FILE__)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="WLogInterface_8h-source.html">WLogInterface.h</a>第<a class="el" href="WLogInterface_8h-source.html#l00083">83</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="0c5e59a7caaa02f887d077eaa467f209"></a><!-- doxytag: member="WLogInterface.h::error" ref="0c5e59a7caaa02f887d077eaa467f209" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define error&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_ERROR, __LINE__, _FUNCTION_NAME_, __FILE__)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="WLogInterface_8h-source.html">WLogInterface.h</a>第<a class="el" href="WLogInterface_8h-source.html#l00084">84</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="376d6dc5d2ccfed0a99c3d88a107a702"></a><!-- doxytag: member="WLogInterface.h::wassert" ref="376d6dc5d2ccfed0a99c3d88a107a702" args="(condition)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define wassert          </td>
          <td>(</td>
          <td class="paramtype">condition&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td>&nbsp;&nbsp;&nbsp;((!!(condition)) || ((<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_ASSERT, __LINE__, _FUNCTION_NAME_, __FILE__)(&quot;%s&quot;, #condition)),0))</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="WLogInterface_8h-source.html">WLogInterface.h</a>第<a class="el" href="WLogInterface_8h-source.html#l00085">85</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="eb6ad588d9fde043f5a7ae20aef48e8c"></a><!-- doxytag: member="WLogInterface.h::fatal" ref="eb6ad588d9fde043f5a7ae20aef48e8c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define fatal&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_FATAL, __LINE__, _FUNCTION_NAME_, __FILE__)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="WLogInterface_8h-source.html">WLogInterface.h</a>第<a class="el" href="WLogInterface_8h-source.html#l00086">86</a>行定义。</p>

</div>
</div><p>
<a class="anchor" name="e04293253b669ea7b9882c968030eeed"></a><!-- doxytag: member="WLogInterface.h::output" ref="e04293253b669ea7b9882c968030eeed" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define output&nbsp;&nbsp;&nbsp;<a class="el" href="classWLog_1_1Record.html">WLog::Record</a>(W_LEVEL_OUTPUT, __LINE__, _FUNCTION_NAME_, __FILE__)          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>在文件<a class="el" href="WLogInterface_8h-source.html">WLogInterface.h</a>第<a class="el" href="WLogInterface_8h-source.html#l00087">87</a>行定义。</p>

</div>
</div><p>
</div>
<hr>
<address style="align: right;">
  Generated on Mon Apr 6 21:08:48 2009 for WLog by 韦体东<img src="logo.png" align="middle"/></address>
</body>
</html>
